/**
 * 
 */
package soa.security.exception;

/**
 * @author CreGu
 *
 */
public class OrganizationException extends RuntimeException {

	private static final long serialVersionUID = -8371061866944330908L;

	protected final org.slf4j.Logger log = org.slf4j.LoggerFactory
			.getLogger(this.getClass());

	public static final String ERROR_01 = "机构不存在";
	public static final String ERROR_02 = "模型对象已经存在";
	public static final String ERROR_OTHER = "其他错误";
	public static final String ERROR_LDAP = "操作数据错误";
	public static final String DEPARTMENT_NOTFOUND = "部门不存在";
	public static final String NOTFOUND = "模型对象不存在";

	public OrganizationException() {
		super();
		// TODO Auto-generated constructor stub
	}

	public OrganizationException(String message, Throwable cause,
			boolean enableSuppression, boolean writableStackTrace) {
		super(message, cause, enableSuppression, writableStackTrace);
		// TODO Auto-generated constructor stub
	}

	public OrganizationException(String message, Throwable cause) {
		super(message, cause);

		if (log.isDebugEnabled())
			log.debug(message, cause);
	}

	public OrganizationException(String message) {
		super(message);
		// TODO Auto-generated constructor stub
	}

	public OrganizationException(Throwable cause) {
		super(cause);
		// TODO Auto-generated constructor stub
	}

}
